﻿using System.Drawing;

namespace PdfSdk.PdfViewer
{
    internal class RedactionWrapper : ObjectWrapper
    {
        public RedactionWrapper(object obj) : base(obj)
        {
        }

        public PdfAnnotationPopupWrapper AnnotationPopup
        {
            get
            {
                object obj = GetPropertyValue();
                if (obj == null)
                    return null;
                return new PdfAnnotationPopupWrapper(obj);
            }
        }

        public RectangleF[] Bounds
        {
            get => GetPropertyValue() as RectangleF[];
        }

        public RedactionWrapper Clone() => new(InvokeMethod());
    }
}
